<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html>
<head>
    <title>Drool (Digital Currency Tool)</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="resources/css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="resources/css/main.css"/>

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:800,300' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Chango' rel='stylesheet' type='text/css'>


    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <%--<script type="text/javascript" src="<c:url value="resources/js/jquery.js"/>"></script>--%>
    <script type="text/javascript" src="<c:url value="resources/js/main.js"/>"></script>


</head>
<body>

<div id="mainContainer">
    <header>
        <h1>


            <a href="index.jsp"><img src="resources/images/Drool.png" alt="Drool (Digital Currency Tool)"/></a>
        </h1>
        <nav>
            <ul>
                <li><a href="index.jsp">HOME</a></li>
                <li><a href="api.jsp">API</a></li>
                <li><a href="doc.jsp">DOCUMENTATION</a></li>
                <li><a href="contact.jsp">CONTACT</a></li>
            </ul>
        </nav>
    </header>

        <article>

            <h2>     Welcome to Drool (Digital Currency Tool)</h2>

            <p>  Drool is a web application that aims to solve your transaction and exchange information needs. Using the application is really straightforward ,
                first you select the initial currency name , then the resulting currency name and then you input the amount of currency you would like to exchange.
            </p>


            <p>     The application has a really intuitive structure and flow : On the startup in the background , a check is performed , whether exchange
                rates are present in the MongoDB or the application should download a more recent version. Also, a scheduled method is started , that
                allows for exchange rates to be updated from the third party API , each 15 minutes. When the main page loads , it already contains the
                JSON representation of the exchange rates.
                Next when the user interacts with the page the rates are already present , which means the user can seamlessly interact with
                the desired information and no additional loading is required.</p>

<p>  Also the app provides two API methods , one that allows to recieve a JSON Map containing the exchange rates aggregated by the application .
    And a second method that allows to get the final value of a transfer between currencies.</p>

            <p>  To improve and evolve the application following features can be implemented:</p>
            <ul>
                <li> 1.Remembering each user via cookies , and allowing them to customize the set of currencies the exchange can be performed on .
                </li>
            <li>2.Because the exchange rates are stored in the MongoDB , it is possible to implement a feature that would allow generation of rate evolution
                graphs , that could show how rates variate in response to each other. Also the graph generation could be exposed as a REST service.
            </li>
            </ul>

            <p>
                For a more complete technical documentation  go to <a href="https://github.com/Karudi/Drool">Drool Project Home Page</a>
            </p>

        </article>


</div>
</body>
</html>
